package com.spider.moudle.entity;

import com.spider.moudle.util.CommonUtil;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 用户实体类
 *
 * @author AntKun
 * @create 2017-12-20 15:13
 **/
public class UserBean extends BaseBean {

    /**
     * json_id :
     * publish_user : 用户名
     * publish_user_photo : 用户头像
     * publish_user_id : 发布用户Id
     * url : 用户主页Url
     * fans_count : 粉丝数量
     * follow_count : 关注数量
     * friend_count : 好友数量
     * sex : 性别
     * register_time : 注册时间
     * article_count : 发帖数（微博数、主题数）
     * reply_article_count : 回帖数量
     * visit_count : 主页访问数量
     * group_name : 用户所属组
     * introduction : 签名或者简介
     * fans_details :
     * follow_details :
     * friend_details :
     */

    private String json_id = "";
    private String publish_user = "";
    private String publish_user_photo = "";
    private String publish_user_id = "";
    private String url = "";
    private int fans_count;
    private int follow_count;
    private int friend_count;
    private String sex = "";
    private Date register_time;
    private int article_count;
    private int reply_article_count;
    private int visit_count;
    private String group_name = "";
    private String introduction = "";
    private List<UserBean> fans_details = new ArrayList<>();
    private List<UserBean> follow_details = new ArrayList<>();
    private List<UserBean> friend_details = new ArrayList<>();

    public String getJson_id() {
        return json_id;
    }

    public void setJson_id(String json_id) {
        this.json_id = json_id.trim();
    }

    public String getPublish_user() {
        return publish_user;
    }

    public void setPublish_user(String publish_user) {
        this.publish_user = publish_user.trim();
    }

    public String getPublish_user_photo() {
        return publish_user_photo;
    }

    public void setPublish_user_photo(String publish_user_photo) {
        this.publish_user_photo = publish_user_photo.trim();
    }

    public String getPublish_user_id() {
        return publish_user_id;
    }

    public void setPublish_user_id(String publish_user_id) {
        this.publish_user_id = publish_user_id.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url.trim();
    }

    public int getFans_count() {
        return fans_count;
    }

    public void setFans_count(int fans_count) {
        this.fans_count = fans_count;
    }

    public int getFollow_count() {
        return follow_count;
    }

    public void setFollow_count(int follow_count) {
        this.follow_count = follow_count;
    }

    public int getFriend_count() {
        return friend_count;
    }

    public void setFriend_count(int friend_count) {
        this.friend_count = friend_count;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        if(CommonUtil.isNotNull(sex)) {
            this.sex = sex.trim();
        }
    }

    public Date getRegister_time() {
        return register_time;
    }

    public void setRegister_time(Date register_time) {
        this.register_time = register_time;
    }

    public int getArticle_count() {
        return article_count;
    }

    public void setArticle_count(int article_count) {
        this.article_count = article_count;
    }

    public int getReply_article_count() {
        return reply_article_count;
    }

    public void setReply_article_count(int reply_article_count) {
        this.reply_article_count = reply_article_count;
    }

    public int getVisit_count() {
        return visit_count;
    }

    public void setVisit_count(int visit_count) {
        this.visit_count = visit_count;
    }

    public String getGroup_name() {
        return group_name;
    }

    public void setGroup_name(String group_name) {
        this.group_name = group_name.trim();
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction.trim();
    }

    public List<UserBean> getFans_details() {
        return fans_details;
    }

    public void setFans_details(List<UserBean> fans_details) {
        this.fans_details = fans_details;
    }

    public List<UserBean> getFollow_details() {
        return follow_details;
    }

    public void setFollow_details(List<UserBean> follow_details) {
        this.follow_details = follow_details;
    }

    public List<UserBean> getFriend_details() {
        return friend_details;
    }

    public void setFriend_details(List<UserBean> friend_details) {
        this.friend_details = friend_details;
    }
}
